package com.ruoyi.work.service;

import com.itextpdf.text.pdf.PdfReader;
import com.ruoyi.work.domain.KeywordInfo;
import com.ruoyi.work.domain.Stamp;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;

/**
 * pdfService接口
 *
 * @author fengcheng
 */
public interface IPdfService {

    /**
     * 获取pdf大纲
     *
     * @param downloadPath
     * @return
     */
    List<HashMap<String, Object>> getPdfOutline(String downloadPath);

    /**
     * 通过关键字获取xy
     *
     * @param pdfReader
     * @param keyword
     * @return
     */
    List<KeywordInfo> getSealLocation(PdfReader pdfReader, String keyword) throws IOException;

    /**
     * 完成盖章和签名
     *
     * @param stampList
     */
    void completeStamp(List<Stamp> stampList);
}
